@file:OptIn(ExperimentalUuidApi::class)

package com.harth.blemultiplatform.ble

import no.nordicsemi.kotlin.ble.client.android.AdvertisingData
import kotlin.uuid.ExperimentalUuidApi
import kotlin.uuid.Uuid

class NativeAdvertisingData(val advertisingData: AdvertisingData):IAdvertisingData {
    override val name: String?
        get() = advertisingData.name

    override val serviceUuids: List<Uuid>
        get() = advertisingData.serviceUuids

    override val serviceSolicitationUuids: List<Uuid>
        get() = advertisingData.serviceSolicitationUuids

    override val serviceData: Map<Uuid, ByteArray>
        get() = advertisingData.serviceData

    override val txPowerLevel: Int?
        get() = advertisingData.txPowerLevel

    override val manufacturerData: Map<Int, ByteArray>
        get() = advertisingData.manufacturerData

    override val raw: ByteArray
        get() = advertisingData.raw
}